const express = require('express');
const router = express.Router();

// 导入各模块路由
const bookRoutes = require('./books');
// const userRoutes = require('./users');

// 挂载路由，通过路径区分模块
router.use('/books', bookRoutes);   // 书籍相关接口：/api/books/xxx
// router.use('/users', userRoutes);   // 用户相关接口：/api/users/xxx

module.exports = router;